<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>书店</title>
    <meta name="viewport" content="user-scalable=0">
    <link rel="stylesheet" type="text/css" href="public/home/iconfont/iconfont.css">
    <link rel="stylesheet" type="text/css" href="public/home/css/default.css">
    <link rel="stylesheet" type="text/css" href="public/home/css/style.css">
    <?php include './config/mysql.php';
        $on = empty($_GET['on'])?'index':$_GET['on'];
    ?>
</head>
<body>
<div class="headbox1">
    <div class="w1200 txtr">
        <?php if(empty($_SESSION['h_id'])){?>
        <a href="login.php" class="btn1">登录</a>
        <a href="zc.php" class="btn1">注册</a>
        <?php }else{?>
            <a href="" class="btn1">用户:<?php echo $_SESSION['h_name']?></a>
            <a href="my.php" class="btn1">个人中心</a>
            <a href="user.php?type=out" class="btn1">退出登录</a>
        <?php }?>
    </div>
</div>
<div class="headbox2">
    <div class="w1200">
        <h1 class="logo">书店</h1>
        <a href="index.php" class="btn2 <?php if($on == 'index'){ echo 'on';}?>">书店商城</a>
<!--        <a href="cwxc.php?on=cwxc" class="btn2 --><?php //if($on == 'cwxc'){ echo 'on';}?><!-- " >书店相册</a>-->
<!--        <a href="ys.php?on=ys" class="btn2 --><?php //if($on == 'ys'){ echo 'on';}?><!-- ">员工风采</a>-->
    </div>
</div>
